<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/tag/sys" prefix="sys"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<sys:baseUrl/>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>销售</title>
<link rel="Stylesheet" href="style/common.css" />
<script type="text/javascript" src="js/sell.js"></script>
<link rel="stylesheet" href="style/floatDiv.css" type="text/css" />
<script type="text/javascript" src="js/floatDiv.js"></script>
<link rel="stylesheet" href="style/sell.css" type="text/css" />
</head>
<body>
	<div class="input_area" style="width: 500px">
		<c:if test="${outports!=null }">
			<a href="javascript:void(1);"
				onclick="showDiv('bill','event',550,400)">查看单据</a>
			<br />
			<br />
		</c:if>
		<form action="inport/return" method="post">
			<label>供&nbsp;货&nbsp;商：<select name="provider">
				<c:forEach items="${pList }" var="p">
					<option value="${p.id}">${p.providername}</option>
				</c:forEach>
			</select>
			 </label><br />
			<br /> <label>支付方式：<select name="pay_type">
					<option value="cash">现&nbsp;&nbsp;金</option>
					<option value="card">银行卡</option>
					<option value="check">支&nbsp;&nbsp;票</option>
			</select> </label><br /> <br /> 
			<label>商&nbsp;&nbsp;&nbsp;&nbsp;品：
				<a href="javascript:choose_good()">[选择商品]</a><br /> <br /> 
				<input id="good_list" name="goods" readonly="readonly">
			 </label>
			 <div id="good_list_display"></div>
			 <br /> <br />
			总&nbsp;&nbsp;&nbsp;&nbsp;价：<label id='total_price'>0</label> 
			<label	style="margin-left: 100px;">备&nbsp;&nbsp;&nbsp;&nbsp;注：
				<input	name="comment" /> 
			</label><br /> <br /> 
			<input type="submit" value="确认" style="margin-left: 100px;">
		</form>
	</div>
	<div id="choose_frame" class="floatDiv">
		<iframe  id="choose_area" src="null.html" height="380px" width="550px"
			frameborder="0"></iframe>
		<center>
			<a href="javascript:closeDiv('choose_frame')">[关闭]</a>
		</center>
	</div>
	<div id="bill" class="floatDiv">
				<div id="bill_area">
					<center><h4>退&nbsp;货&nbsp;单&nbsp;据</h4></center>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;供货商：<u>${outports[0].tbProvider.providername }</u><br>
					<table style=" background:#D40;width: 90%;margin:auto;" >
					<tr>
					<td width="100px">序号</td><td width="240px"> 商品名 </td><td width="50px">数量</td><td width="100px">单价</td>
					</tr>
					<c:forEach items="${outports }" var="s">
					<tr>
						<td>${s.tbGoods.id }</td><td> ${s.tbGoods.goodsname } </td><td>${s.number } </td><td>${s.price }</td>
					</tr>
					</c:forEach>
					</table>
					<center>
					总金额：<u>${total }</u>&nbsp;&nbsp;
					经办员：<u>${outports[0].operateperson }</u>&nbsp;&nbsp;
					日期：<u>${time }</u>
					</center>
				</div>
				<center>
					<a href="javascript:closeDiv('bill')">[关闭]</a>
				</center>
			</div>
			<!-- 修改单价 -->
	<div id="modify_price_div" class="floatDiv">
		<br/><input id="modify_price_input" >&nbsp;&nbsp;
		<input type="button" value="修改" onclick="modify_price_done()"><br/>
	</div>
</body>
</html>